Skip to content

Migrate from SQLiteAdapter to LocalAdapter#29

Merged
cuibonobo merged 1 commit into
mainfrom
claude/quirky-euler-l6fg6x
Jun 25, 2026
Merged

Migrate from SQLiteAdapter to LocalAdapter#29
cuibonobo merged 1 commit into
mainfrom
claude/quirky-euler-l6fg6x

Conversation

@cuibonobo

Copy link
Copy Markdown
Member

Summary

This PR migrates the codebase from using @haverstack/adapter-sqlite to the new @haverstack/adapter-local package, updating all related imports and type references across the project.

Key Changes

  • Replaced SQLiteAdapter imports with LocalAdapter from @haverstack/adapter-local in:
    • src/stack.ts - Updated adapter type and initialization calls
    • tests/setup.ts - Updated test setup to use new adapter
    • src/routes/tokens.ts - Updated type imports
  • Updated package.json dependencies:
    • @haverstack/adapter-sqlite@haverstack/adapter-local (v0.5.0 → v0.6.0)
    • @haverstack/core (v0.5.0 → v0.6.0)
    • @haverstack/wire-types (v0.5.0 → v0.6.0)

Implementation Details

The migration is straightforward with no changes to the adapter initialization logic or method signatures. The LocalAdapter maintains the same API as SQLiteAdapter, supporting both initialize() and open() methods with identical parameters.

https://claude.ai/code/session_01U87aE3x7uo3CJft1NxYvUb

Replace @haverstack/adapter-sqlite with @haverstack/adapter-local
(SQLiteRecordAdapter + DiskBlobAdapter composed) and bump @haverstack/core
and @haverstack/wire-types to ^0.6.0. SQLiteAdapter → LocalAdapter across
src/stack.ts, src/routes/tokens.ts, and tests/setup.ts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U87aE3x7uo3CJft1NxYvUb
@cuibonobo cuibonobo merged commit 011e4ce into main Jun 25, 2026
4 checks passed
@cuibonobo cuibonobo deleted the claude/quirky-euler-l6fg6x branch June 25, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants